package com.pro.common.user.task.fallback;

import com.pro.common.api.user.task.intf.UserTaskStepFeignClient;
import com.pro.common.api.user.task.model.db.UserTaskStep;
import com.pro.common.user.task.service.UserTaskStepService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

@RestController
@RequestMapping("/")
@AllArgsConstructor
@Slf4j
public class UserTaskStepFeignFallback implements UserTaskStepFeignClient {

    private UserTaskStepService service;

    @Override
    public boolean updateBatchById(List<UserTaskStep> list) {
        return service.updateBatchById(list);
    }

    @Override
    public List<UserTaskStep> getListAsc(UserTaskStep param) {
        return service.getListAsc(param);
    }

    @Override
    public Long getVirtualFinishMaxId(UserTaskStep param) {
        return service.getVirtualFinishMaxId(param);
    }
}

